﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server" action="WebForm2.aspx">
        <div>
            账号:<asp:TextBox ID="username" runat="server"></asp:TextBox>
            <br />
            密码:<asp:TextBox ID="password" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="Button1" runat="server" Text="登录1(post)" />
            <asp:Button ID="Button2" runat="server" Text="登录2(post)" PostBackUrl="~/WebForm2.aspx"/>
            <asp:Button ID="Button3" runat="server" Text="登录3(get)" OnClick="Button3_Click" />
            <asp:Button ID="Button4" runat="server" Text="登录4(get)" OnClick="Button4_Click" />
            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
        </div>
    </form>
</body>
</html>
